package com.swift.violent.mainstay.config.expand;

import com.github.alenfive.rocketapi.extend.IScriptEncrypt;
import lombok.SneakyThrows;
import org.springframework.stereotype.Component;

/**
 * 代码加解密默认实现类
 *
 * @author xuhaifeng
 * @date 2021.1.19 21:45
 */
@Component
public class DefaultScriptEncrypt implements IScriptEncrypt {

    /**
     * 加密
     *
     * @param source source
     *
     * @return encrypt
     */
    @Override
    @SneakyThrows
    public String encrypt(String source) {
        return source;
    }

    /**
     * 解密
     *
     * @param encrypt encrypt
     *
     * @return source
     */
    @Override
    @SneakyThrows
    public String decrypt(String encrypt) {
        return encrypt;
    }
}